@darkTheme: #333;
@darkHeaderTheme: #333;
@darkFontColor: #ababab;
@darkSiteNameFontHoverColor: #f4e3ab;
@darkFontHoverColor: #e66201;

@lightTheme: #edecea;
@lightHeaderTheme: #f0f0f0;
@lightFontColor: black;
@lightSiteNameFontHoverColor: #f4e3ab;
@lightFontHoverColor: #e66201;

body {
  margin: 0;
}

ul {
  padding-inline-start: 15px;
  cursor: pointer;
}
.dark {
  background-color: @darkTheme;
  header {
    height: 55px;
    line-height: 55px;
    position: relative;
    cursor: pointer;
  }
  @keyframes showFloatBar {
    from {
      top: -55px;
    }
    to {
      top: 0px;
    }
  }
  @keyframes hideFloatBar {
    from {
      top: 0px;
    }
    to {
      top: -55px;
    }
  }
  .headerFloatBar {
    position: fixed;
    background-color: @darkHeaderTheme;
    top: 0px;
  }
  .showHeaderFloatBar {
    animation: showFloatBar 0.5s linear 0s;
  }
  .hideHeaderFloatBar {
    animation: hideFloatBar 0.5s linear 0s;
  }
  #siteName {
    font-size: 24px;
    color: @darkFontColor;
    padding-left: 20px;
    padding-right: 10px;
    &:hover {
      color: @darkSiteNameFontHoverColor;
    }
  }
  .sizeBtn {
    color: @darkFontColor;
    vertical-align: top;
    &:hover {
      color: @darkFontHoverColor;
    }
  }
  .separator {
    padding: 0 5px;
    color: @darkFontColor;
    vertical-align: top;
  }
  #title {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    color: @darkFontColor;
    &:hover {
      color: @darkFontHoverColor;
    }
  }
  #directoryUl {
    color: @darkFontColor;
    li span {
      &:hover {
        color: @darkFontHoverColor;
      }
    }
  }
  #content {
    position: absolute;
    top: 55px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
  }
  footer {
    position: fixed;
    bottom: 0px;
    height: 44px;
    padding-left: 20px;
    width: 100%;
    color: @darkFontColor;
    cursor: pointer;
  }
  .footerFloatBar {
    bottom: -44px;
  }
}

.light {
  background-color: @lightTheme;
  header {
    height: 55px;
    line-height: 55px;
    position: relative;
    cursor: pointer;
  }
  @keyframes showFloatBar {
    from {
      top: -55px;
    }
    to {
      top: 0px;
    }
  }
  @keyframes hideFloatBar {
    from {
      top: 0px;
    }
    to {
      top: -55px;
    }
  }
  .headerFloatBar {
    position: fixed;
    background-color: @lightHeaderTheme;
    top: -55px;
  }
  .showHeaderFloatBar {
    animation: showFloatBar 0.5s linear 0s;
  }
  .hideHeaderFloatBar {
    animation: hideFloatBar 0.5s linear 0s;
  }
  #siteName {
    font-size: 24px;
    color: @lightFontColor;
    padding-left: 20px;
    padding-right: 10px;
    &:hover {
      color: @lightSiteNameFontHoverColor;
    }
  }
  .sizeBtn {
    color: @lightFontColor;
    vertical-align: top;
    &:hover {
      color: @lightFontHoverColor;
    }
  }
  .separator {
    padding: 0 5px;
    color: @lightFontColor;
    vertical-align: top;
  }
  #title {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    color: @lightFontColor;
    &:hover {
      color: @lightFontHoverColor;
    }
  }
  #directoryUl {
    color: @lightFontColor;
    li span {
      &:hover {
        color: @lightFontHoverColor;
      }
    }
  }
  #content {
    position: absolute;
    top: 55px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
  }
  footer {
    position: fixed;
    bottom: 0px;
    height: 44px;
    padding-left: 20px;
    width: 100%;
    color: @lightFontColor;
    cursor: pointer;
  }
  .footerFloatBar {
    bottom: -44px;
  }
}

h2 {
  margin: 10px 0;
}

#imgBox {
  display: grid;
  // flex-direction: row;
  // flex-wrap: wrap;
  // height: fit-content;
  // justify-content: center;
}

.img-1-column {
  grid-template-columns: auto;

}
.img-2-column {
grid-template-columns: auto auto;
}
.img {
  position: relative;
  width: auto;
  height: auto;
  margin: 5px;
}

#bigImgBox {
  background-color: rgba(0, 0, 0, 0.5); /* 背景颜色为半透明的黑色 */
  position: fixed; /* 固定位置，不随页面滚动而移动 */
  z-index: 98; /* 设置极高的z-index值，确保蒙层覆盖在其他内容之上 */
  top: 0; /* 顶部位置为0 */
  bottom: 0; /* 底部位置为0 */
  left: 0; /* 左侧位置为0 */
  right: 0; /* 右侧位置为0 */
  display: none;
  justify-content: center; /* 水平居中对齐内容 */
  align-items: center; /* 垂直居中对齐内容 */
}
#bigImg {
  width: 800px;
  z-index: 99;
}

#directory {
  width: 280px;
  height: calc(100% - 54px);
  position: relative;
  overflow-y: scroll;
}

#picViewArea {
  width: calc(100% - 280px);
  height: 100%;
  overflow-y: scroll;
}

#switch {
  position: fixed;
  left: 190px;
  bottom: 10px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 100%;
  display: flex;
  align-items: center;
  width: 28px;
  height: 28px;
}

/* 整体滚动条样式 */
::-webkit-scrollbar {
  width: 5px; /* 滚动条的宽度 */
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 轨道颜色 */
  border-radius: 10px;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
  background: #888; /* 滑块颜色 */
  border-radius: 10px; /* 滑块圆角 */
}

/* 鼠标悬停在滑块上时的样式 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 鼠标悬停时的滑块颜色 */
}
